package cn.myframe.config;

import org.springframework.context.annotation.Configuration;

@Configuration 
public class RedissionConfig {
	
/*	@Value("${spring.redis.clusters}")
	public String cluster;
	
	@Bean(destroyMethod = "shutdown")
    @ConditionalOnMissingBean(name = "redission")
    public RedissonClient redission() {
        Config config = new Config();
        cluster= cluster.trim();
        String[] nodes = cluster.split(",");
        for(int i = 0, length = nodes.length; i<length; i++){
        	nodes[i] = "redis://"+ nodes[i];
        }
        config.useClusterServers().addNodeAddress(nodes);
        return Redisson.create(config);
    }
*/


}
